<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>模板语法</title>
</head>

<body>
    <div id="root">
        <h2>差值语法</h2>
        <h4>你好，{{msg}}</h4>
        <h4>你好，{{msg.toUpperCase()}}</h4>
        </hr>
        <h2>指令语法</h2>
        <a :href="url" :x="msg">点我去哔哩哔哩</a>

    </div>

    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>

    <script>
        new Vue({
            el: '#root',
            data: {
                msg: 'xiba',
                url:'https://www.bilibili.com/'
            }
        })
    </script>
</body>

</html>